#ifndef DIALOGSMBLOGIN_H
#define DIALOGSMBLOGIN_H


#include <QWidget>
#include <QHBoxLayout>
#include <QVBoxLayout>
#include <QLineEdit>
#include <QPushButton>
#include <QLabel>
#include <QTimer>
#include <QDialog>

#ifdef Q_OS_ANDROID


#include "JNIManager.h"
#include "smbManager.h"

namespace Ui{
    class dialogSmbLogin;
}

// 网络连接登录弹窗
class DialogSMBLogin : public QDialog
{
    Q_OBJECT
public:
    DialogSMBLogin(QWidget* parent = nullptr);
    void showEvent(QShowEvent *event) override;

private slots:
    void on_buttonConnect_clicked();
    void on_buttonCancel_clicked();

signals:
    void sig_connectSuccess(QString ip);

private:

    QLabel*         _label_info;
    QLineEdit*      _line_ip;
    QLineEdit*      _line_usr;
    QLineEdit*      _line_pwd;
    QPushButton*    _button_connect;
    QPushButton*    _button_cancel;

    Ui::dialogSmbLogin* ui;

};

#endif
#endif // DIALOGSMBLOGIN_H
